package com.lg.thread.day01;

/**
 * 线程共享变量
 *
 * @author LG93
 * @create 2017-08-09 17:18
 **/
public class MyThread5 extends Thread {

    private int count = 5;

    @Override
    synchronized public void run() {
        super.run();
        count--;
        System.out.println("由 " + this.currentThread().getName() + "计算，count = " + count);
    }
}
